package com.gxa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.dto.UserDto;
import com.gxa.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.shiro.crypto.hash.SimpleHash;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {


     List<User> queryAll(UserDto userDto); //查询全部

    User queryByUserNameAndPwd(@Param("username") String username,@Param("pwd") String pwd);//通过用户名和密码进行登录

    User queryByUserName(String username);

    void updateLimit(UserDto userDto);//对用户进行权限修改

    List<User> loginout(UserDto userDto);//用户退出登录操作

    void  updatePwd (UserDto userDto);//修改用户名的密码

    void  updateTel(UserDto userDto);//修改用户名的电话号

    List<String> queryTelByUname(String uname);

    

}
